<template>
  <div style="background-color:#F2F3F6;position:absolute;top:0;bottom:0;left:0;right:0;">
    <h1 style="text-align: center">Commit Detail</h1>
    <hr>
    <div>
      <!-- 作者 -->
      <div style="padding-top:20px;display:flex;background-color:#F2F3F6;">
        <i class="el-icon-user" style="margin-left:20px;margin-right:10px;" />
        <div style="color: #808080;width:80px;">Autor：</div>
        <div style="color:#292929;">{{ commitAuthor }}</div>
      </div>
      <!-- 摘要 -->
      <div style="display:flex;padding-top:20px;padding-bottom:20px;background-color:#F2F3F6;">
        <i class="el-icon-chat-dot-square" style="margin-left:20px;margin-right:10px;" />
        <div style="color: #808080;width:80px;">Sumary：</div>
        <div style="color:#292929;">{{ commitSummary }}</div>
      </div>
    </div>

    <!-- 文件路径 -->
    <div style="display:flex;padding-top:20px;">
      <i class="el-icon-files" style="margin-left:20px;margin-right:10px;" />
      <div style="color: #808080;width:80px;">File：</div>
      <div style="color:#292929;">{{ commitSummary }}</div>
    </div>
    <!-- 代码详情 -->

  </div>
</template>

<script>

export default {
  components: {},
  data() {
    return {
      // 当前提交信息
      curCommit: undefined,
      // 作者
      commitAuthor: '',
      // 摘要
      commitSummary: ''
    }
  },
  created() {
  },
  mounted() {
    console.log('!!!!!!!', this.$route.params.commit)
    this.curCommit = this.$route.params.commit
    this.commitAuthor = this.curCommit._CommitInfo__author
    this.commitSummary = this.curCommit._CommitInfo__message
  },
  destroyed() {
  },
  methods: {
  }
}
</script>

<style lang="scss" scope>

.fileClass {
  color: #141414;
  font: 20px 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin-left: 20px;
  margin-right: 20px;
}

</style>
